package com.zhouyu.commonapi.resbody;

public enum  ResponseEnum {
    SUCCESS(00,"成功"),
    SERVER_ERROR(500,"网络错误"),
    //参数非法
    PARAM_ILLEGAL(1001,"参数非法"),


    BYTE_LENGTH_SHORT(3001,"字节数不够"),
    BYTE_LENGTH_LONG(3002,"字节数超过限制"),
    BODY_LENGTH_ILLEGAL(3003,"剩余字节长度和长度域的值对不上"),

    PARAM_LENTH_ERROR(1002,"参数长度非法");

    ResponseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }



    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
